<template>
    <div class=''>
        <p @click="$router.go(-1)" class="p">返回</p>
        <img :src="getid.pic" alt="">
        <p v-html="getid.content"></p>
        <h4>{{getid.title}}</h4>
     
    </div>
</template>

<script>
export default {
    data() {
        return {
            id:this.$route.query.id,
            getid:[]
        };
    },
    mounted() {
       this.$axios.get("https://api.it120.cc/small4/cms/news/detail?id="+this.id).then((res)=>{
           console.log(res);
             this.getid=res.data.data
       })
    },
    methods: {},
    components:{}
};
</script>

<style lang='scss'>
img{
    width: 100%;
}
.p{
    width: 100%;
    height: 30px;
    line-height: 30px;
    background-color: #ccc;
}
</style>
